package com.zhenwei.zscm.model.vo.order;

import com.zhenwei.zscm.common.annotations.Insert;
import com.zhenwei.zscm.common.annotations.Update;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Data
public class CreateOrderProductVO {
    /**
     * 产品id
     */
    @NotEmpty(message = "产品不能为空", groups = {Insert.class, Update.class })
    private String productCode;
    /**
     * 产品名称
     */
    @NotEmpty(message = "产品不能为空", groups = {Insert.class, Update.class })
    private String productName;
    /**
     * 产品SN
     */
    @NotEmpty(message = "产品SN不能为空", groups = {Insert.class, Update.class })
    private String productSn;
    @NotEmpty(message = "产品备注不能为空", groups = { Insert.class, Update.class })
    private String comment;
}
